<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="css/pintuer.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery.js"></script>
<script src="js/pintuer.js"></script>
  <script type="text/javascript">
    function updateStore() {
      if(confirm("您确定要上传店面信息吗？")) {
        console.log("=》进入了js")

      }
      if(confirm("上传店面信息成功！"));
    }

    $(document).ready(function(){
      $("ul li:eq(1)").addClass("active");
    });
  </script>
</head>
<body>
<div class="panel admin-panel">
  <div class="panel-head"><strong><span class="icon-key"></span> 编辑店家标语</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="${pageContext.request.contextPath}/store?action=update">
      <div class="form-group">
        <div class="label">
          <label for="sitename">当前账户：</label>
        </div>
        <div class="field">
          <label style="line-height:33px;">
           manager
          </label>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">店名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" id="store_name" name="store_name" size="50" placeholder="${requestScope.store.store_name}"  />
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label for="sitename">位置：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="store_location" size="50" placeholder="${requestScope.store.store_location}"/>
        </div>
      </div>
      <div class="form-group">

        <div class="label">
          <label for="sitename">发布状态：</label>
        </div>
        <div class="field">
          <select name="store_publisher" style= " width:250px; " >
            <option value =""> ${('0'.equals(requestScope.store.store_publisher))?'未发布':'已发布'}</option>                                   </option>
           <option  value ="0">未发布</option>
            <option value ="1">发布</option>
          </select>
        </div>
        </div>
      <div class="form-group">
        <div class="label">
          <label>广告语：</label>
        </div>
        <div class="field">
          <textarea type="text" class="input" name="store_ad"   placeholder="${requestScope.store.store_ad}" style="height:120px;" value=""></textarea>
          <div class="tips"></div>
        </div>
      </div>

      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit" onclick="updateStore()"> 上传店面信息</button>
        </div>
      </div>
    </form>
  </div>
</div>
</body></html>
